﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using NetTopologySuite.Geometries;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_village_fire_safety")]
    public partial class ZmVillageFireSafety : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(255)]
        public string Id { get; set; }
        [Column("village_ownership")]
        [StringLength(255)]
        public string VillageOwnership { get; set; }
        [Column("village_name")]
        [StringLength(255)]
        public string VillageName { get; set; }
        [Column("fire_lanes_number")]
        public int? FireLanesNumber { get; set; }
        [Column("fire_pool_number")]
        public int? FirePoolNumber { get; set; }
        [Column("charging_facilities_number")]
        public int? ChargingFacilitiesNumber { get; set; }
        [Column("province")]
        [StringLength(255)]
        public string Province { get; set; }
        [Column("city")]
        [StringLength(255)]
        public string City { get; set; }
        [Column("county")]
        [StringLength(255)]
        public string County { get; set; }
        [Column("country")]
        [StringLength(255)]
        public string Country { get; set; }
        [Column("village")]
        [StringLength(255)]
        public string Village { get; set; }
        [Column("geom")]
        public Geometry Geom { get; set; }
        [Required]
        [Column("create_by")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
        [Column("city_admin_audit")]
        public int? CityAdminAudit { get; set; }
        [Column("city_admin_audit_mind")]
        [StringLength(255)]
        public string CityAdminAuditMind { get; set; }
        [Column("area_admin_audit")]
        public int? AreaAdminAudit { get; set; }
        [Column("area_admin_audit_mind")]
        [StringLength(255)]
        public string AreaAdminAuditMind { get; set; }
        [Column("street_admin_audit")]
        public int? StreetAdminAudit { get; set; }
        [Column("street_admin_audit_mind")]
        [StringLength(255)]
        public string StreetAdminAuditMind { get; set; }
        [Column("community_admin_audit")]
        public int? CommunityAdminAudit { get; set; }
        [Column("pczt")]
        public int? Pczt { get; set; }
        [Column("outdoor_fire_hydrant_number")]
        public int? OutdoorFireHydrantNumber { get; set; }
        [Column("fire_water_crane_number")]
        public int? FireWaterCraneNumber { get; set; }
        [Column("fire_brigade_number")]
        public int? FireBrigadeNumber { get; set; }
        [Column("fire_fighter_number")]
        public int? FireFighterNumber { get; set; }
        [Column("fire_truck_number")]
        public int? FireTruckNumber { get; set; }
        [Column("fire_station_number")]
        public int? FireStationNumber { get; set; }
        [Column("fire_station_personnel_number")]
        public int? FireStationPersonnelNumber { get; set; }
        [Column("fire_station_truck_number")]
        public int? FireStationTruckNumber { get; set; }
        [Column("electric_bicycle_number")]
        public int? ElectricBicycleNumber { get; set; }
        [Column("self_built_houses_area_number")]
        public int? SelfBuiltHousesAreaNumber { get; set; }
        [Column("self_built_rental_house_number")]
        public int? SelfBuiltRentalHouseNumber { get; set; }
        [Column("fire_layout_photo", TypeName = "json")]
        public string FireLayoutPhoto { get; set; }


        [Column("star_rating_report", TypeName = "json")]
        public string star_rating_report { get; set; }


     
    }

    [Table("zm_village_fire_safety_yj")]
    public partial class ZmVillageFireSafetyYJ : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(255)]
        public string Id { get; set; }
        [Column("village_ownership")]
        [StringLength(255)]
        public string VillageOwnership { get; set; }
        [Column("village_name")]
        [StringLength(255)]
        public string VillageName { get; set; }
        [Column("fire_lanes_number")]
        public int? FireLanesNumber { get; set; }
        [Column("fire_pool_number")]
        public int? FirePoolNumber { get; set; }
        [Column("charging_facilities_number")]
        public int? ChargingFacilitiesNumber { get; set; }
        [Column("province")]
        [StringLength(255)]
        public string Province { get; set; }
        [Column("city")]
        [StringLength(255)]
        public string City { get; set; }
        [Column("county")]
        [StringLength(255)]
        public string County { get; set; }
        [Column("country")]
        [StringLength(255)]
        public string Country { get; set; }
        [Column("village")]
        [StringLength(255)]
        public string Village { get; set; }
        [Column("geom")]
        public Geometry Geom { get; set; }
        [Required]
        [Column("create_by")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
        [Column("city_admin_audit")]
        public int? CityAdminAudit { get; set; }
        [Column("city_admin_audit_mind")]
        [StringLength(255)]
        public string CityAdminAuditMind { get; set; }
        [Column("area_admin_audit")]
        public int? AreaAdminAudit { get; set; }
        [Column("area_admin_audit_mind")]
        [StringLength(255)]
        public string AreaAdminAuditMind { get; set; }
        [Column("street_admin_audit")]
        public int? StreetAdminAudit { get; set; }
        [Column("street_admin_audit_mind")]
        [StringLength(255)]
        public string StreetAdminAuditMind { get; set; }
        [Column("community_admin_audit")]
        public int? CommunityAdminAudit { get; set; }
        [Column("pczt")]
        public int? Pczt { get; set; }
        [Column("outdoor_fire_hydrant_number")]
        public int? OutdoorFireHydrantNumber { get; set; }
        [Column("fire_water_crane_number")]
        public int? FireWaterCraneNumber { get; set; }
        [Column("fire_brigade_number")]
        public int? FireBrigadeNumber { get; set; }
        [Column("fire_fighter_number")]
        public int? FireFighterNumber { get; set; }
        [Column("fire_truck_number")]
        public int? FireTruckNumber { get; set; }
        [Column("fire_station_number")]
        public int? FireStationNumber { get; set; }
        [Column("fire_station_personnel_number")]
        public int? FireStationPersonnelNumber { get; set; }
        [Column("fire_station_truck_number")]
        public int? FireStationTruckNumber { get; set; }
        [Column("electric_bicycle_number")]
        public int? ElectricBicycleNumber { get; set; }
        [Column("self_built_houses_area_number")]
        public int? SelfBuiltHousesAreaNumber { get; set; }
        [Column("self_built_rental_house_number")]
        public int? SelfBuiltRentalHouseNumber { get; set; }
        [Column("fire_layout_photo", TypeName = "json")]
        public string FireLayoutPhoto { get; set; }


        [Column("star_rating_report", TypeName = "json")]
        public string star_rating_report { get; set; }



    }

    public partial class ZmVillageFireSafetyDto : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(255)]
        public string Id { get; set; }
        [Column("village_ownership")]
        [StringLength(255)]
        public string VillageOwnership { get; set; }
        [Column("village_name")]
        [StringLength(255)]
        public string VillageName { get; set; }
        [Column("fire_lanes_number")]
        public int? FireLanesNumber { get; set; }
        [Column("fire_pool_number")]
        public int? FirePoolNumber { get; set; }
        [Column("charging_facilities_number")]
        public int? ChargingFacilitiesNumber { get; set; }
        [Column("province")]
        [StringLength(255)]
        public string Province { get; set; }
        [Column("city")]
        [StringLength(255)]
        public string City { get; set; }
        [Column("county")]
        [StringLength(255)]
        public string County { get; set; }
        [Column("country")]
        [StringLength(255)]
        public string Country { get; set; }
        [Column("village")]
        [StringLength(255)]
        public string Village { get; set; }
        [Column("geom")]
        public Geometry Geom { get; set; }
        [Required]
        [Column("create_by")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
        [Column("city_admin_audit")]
        public int? CityAdminAudit { get; set; }
        [Column("city_admin_audit_mind")]
        [StringLength(255)]
        public string CityAdminAuditMind { get; set; }
        [Column("area_admin_audit")]
        public int? AreaAdminAudit { get; set; }
        [Column("area_admin_audit_mind")]
        [StringLength(255)]
        public string AreaAdminAuditMind { get; set; }
        [Column("street_admin_audit")]
        public int? StreetAdminAudit { get; set; }
        [Column("street_admin_audit_mind")]
        [StringLength(255)]
        public string StreetAdminAuditMind { get; set; }
        [Column("community_admin_audit")]
        public int? CommunityAdminAudit { get; set; }
        [Column("pczt")]
        public int? Pczt { get; set; }
        [Column("outdoor_fire_hydrant_number")]
        public int? OutdoorFireHydrantNumber { get; set; }
        [Column("fire_water_crane_number")]
        public int? FireWaterCraneNumber { get; set; }
        [Column("fire_brigade_number")]
        public int? FireBrigadeNumber { get; set; }
        [Column("fire_fighter_number")]
        public int? FireFighterNumber { get; set; }
        [Column("fire_truck_number")]
        public int? FireTruckNumber { get; set; }
        [Column("fire_station_number")]
        public int? FireStationNumber { get; set; }
        [Column("fire_station_personnel_number")]
        public int? FireStationPersonnelNumber { get; set; }
        [Column("fire_station_truck_number")]
        public int? FireStationTruckNumber { get; set; }
        [Column("electric_bicycle_number")]
        public int? ElectricBicycleNumber { get; set; }
        [Column("self_built_houses_area_number")]
        public int? SelfBuiltHousesAreaNumber { get; set; }
        [Column("self_built_rental_house_number")]
        public int? SelfBuiltRentalHouseNumber { get; set; }
        [Column("fire_layout_photo", TypeName = "json")]
        public string FireLayoutPhoto { get; set; }


        [Column("star_rating_report", TypeName = "json")]
        public string star_rating_report { get; set; }


        [Column("townname")]

        public string TownName { get; set; }

        [Column("xzqdmname")]

        public string XzqdmName { get; set; }
    }
}
